<template>
    <div>
        {{msg}}
    </div>
</template>
<script>
import VueEvent from '../service/vueEvent'
export default {
    name:'Header',
    components:{},
    data(){
        return{
            msg:'header'
        }
    },
    methods:{
        setValue(val){
            console.log(val);
        }
    },
    mounted(){
        VueEvent.$on('to-header',function(data){
            console.log(data);
        })
    }
}
</script>
<style scoped>

</style>